<?php
namespace app\controller;

use app\BaseController;
use think\facade\Session;
use app\middleware\CheckLogin;

class Index extends BaseController
{
	// 注册控制器中间件
    protected $middleware = [CheckLogin::class];

    public function index()
    {
        return redirect((string)url('Showroom/index'));
    }

    public function hello($name = 'ThinkPHP6')
    {
        Session::clear();
        dump(Session::get());
    }
}
